package com.iiapk.gridnew.domain;

import java.io.Serializable;

public class Article implements Serializable{
	
	private static final long serialVersionUID = -8205488275045005684L;
	
	public static final String TABLE_NAME = "Article";
	public static final String COLUMN_ID = "id";
	public static final String COLUMN_TITLE = "title";
	public static final String COLUMN_CONTENT = "content";
	public static final String COLUMN_TIME = "createTime";
	public static final String COLUMN_IAMGE = "image";
	public static final String COLUMN_BELONGTO = "belongTo";
	
	public String id;
	public String title;
	public String content;
	public String createTime;
	public String image;
	public String belongTo;
	public int imgR;
	
	public Article(String title,String content,String createTime,String image) {
		this.title = title;
		this.content = content;
		this.createTime = createTime;
		this.image = image;
	}

	public Article(String id, String title, String content, String createTime,String image,String belongTo) {
		this.id = id;
		this.title = title;
		this.content = content;
		this.createTime = createTime;
		this.image = image;
		this.belongTo=belongTo;
	}

	public static Article creatObject(){
		return new Article("title1","content1","2011-08-11","image1");
	}
}
